using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMM.Core.Domain;
using ServiceStack.ServiceHost;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;


namespace MMM.Services.Type
{
    [Serializable]
    [Route("/api/familyinfo", "POST,PUT")]
    public class FamilyInfo : EntityBase<FamilyInfo>
    {
        /// <summary>
        /// 亲属关系
        /// </summary>
        [StringLength(50)]
        [Required]
        public String KinShip { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        [StringLength(50)]
        [Required]
        public String Name { get; set; }
        /// <summary>
        /// 生日
        /// </summary>
        public DateTime? Birthday { get; set; }
        /// <summary>
        /// 证件
        /// </summary>
        [StringLength(50)]
        public String Identification { get; set; }
        /// <summary>
        /// 员工Id
        /// </summary>       
        [Required]
        public Guid EmpId { get; set; }
        /// <summary>
        /// 员工姓名
        /// </summary>
        [StringLength(50)]
        [Required]
        public String EmpName { get; set; }

    }
}
